package com.mephi.oshs.model.interpreter.impl;

import com.mephi.oshs.model.interpreter.api.IContext;
import com.mephi.oshs.model.interpreter.api.IExpression;

public class ConstantExpression implements IExpression {
    private final Object value;

    public ConstantExpression(final Object newValue) {
        value = newValue;
    }

    public void interpret(final IContext c) {
        c.addVariable(this, value);
    }
}